		<div class="container">
			<div class="bg-putih">

				<div class="jdl-page">
					Resep
					<div class="clearfix"></div>
				</div>

				<?php echo display_flash(); ?>
				<div class="row">
					<?php $kode_resep =  $resep[0]['KdResep'] ?>
					<?php echo form_open(site_url("resep/resep_update/$kode_resep"), array('class' => 'form-horizontal', 'role' => 'form', 'id' => 'form')); ?>
					<div class="col-xs-6">
						<table class="table table-form table-hover">
							<thead>
								<tr>
									<th></th>
									<th>Valid</th>
									<th>Keterangan</th>
								</tr>
							</thead>
							<tbody>							
								<tr>
									<td>
										<input type="text" name="NmDokter" class="form-control input-sm" placeholder="Nama Dokter" value="<?php echo $resep[0]['NmDokter'] ?>">
									</td>
									<td align="center">
										<?php if($resep[0]['IsValidNmDokter'] == 'y'): ?>
											<div class="checkbox checkbox-success">
												<input id="checkbox3" class="styled" type="checkbox" name="IsValidNmDokter" value="y" checked="checked">
												<label for="checkbox3"></label>
											</div>
										<?php else: ?>
											<div class="checkbox checkbox-success">
												<input id="checkbox3" class="styled" type="checkbox" name="IsValidNmDokter" value="y">
												<label for="checkbox3"></label>
											</div>
										<?php endif; ?>
									</td>
									<td>
										<input type="text" name="KetNmDokter" class="form-control input-sm" placeholder="Keterangan" value="<?php echo $resep[0]['KetNmDokter'] ?>">
									</td>
								</tr>

								<tr>
									<td>
										<input type="text" name="AlamatDokter" class="form-control input-sm" placeholder="Alamat Dokter" value="<?php echo $resep[0]['AlamatDokter'] ?>">
									</td>
									<td align="center">
										<?php if($resep[0]['IsValidAlamatDokter'] == 'y'): ?>
											<div class="checkbox checkbox-success">
												<input id="checkbox3" name="IsValidAlamatDokter" class="styled" type="checkbox" value="y" checked="checked">
												<label for="checkbox3"></label>
											</div>
										<?php else: ?>
											<div class="checkbox checkbox-success">
												<input id="checkbox3" name="IsValidAlamatDokter" class="styled" type="checkbox" value="y">
												<label for="checkbox3"></label>
											</div>
										<?php endif; ?>
									</td>
									<td>
										<input type="text" name="KetAlamatDokter" class="form-control input-sm" placeholder="Keterangan" value="<?php echo $resep[0]['KetAlamatDokter'] ?>">
									</td>
								</tr>

								<tr>
									<td>
										<input type="text" name="NomorIjinDokter" class="form-control input-sm" placeholder="No. ijin Dokter" value="<?php echo $resep[0]["NomorIjinDokter"] ?>">
									</td>
									<td align="center">
										<?php if($resep[0]['IsValidNomorIjinDokter'] == 'y'): ?>
											<div class="checkbox checkbox-success">
												<input id="checkbox3" name="IsValidNomorIjinDokter" class="styled" type="checkbox" value="y" checked="checked">
												<label for="checkbox3"></label>
											</div>
										<?php else: ?>
											<div class="checkbox checkbox-success">
												<input id="checkbox3" name="IsValidNomorIjinDokter" class="styled" type="checkbox" value="y">
												<label for="checkbox3"></label>
											</div>
										<?php endif; ?>
									</td>
									<td>
										<input type="text" name="KetNomorIjinDokter" class="form-control input-sm" placeholder="Keterangan" value="<?php echo $resep[0]['KetNomorIjinDokter'] ?>">
									</td>
								</tr>
								
								<script type="text/javascript">
									$(document).ready(function(){
										$("#TglResep").datepicker({
											dateFormat: "yy-mm-dd",
						          changeMonth: true,
						          changeYear: true
										});
									});
								</script>
								<tr>
									<td>
										<input type="text" name="TglResep" id="TglResep" class="form-control input-sm" placeholder="Tanggal Resep" value="<?php echo $resep[0]['TglResep'] ?>">
									</td>
									<td align="center">
										<?php if($resep[0]['IsValidTglResep'] == 'y'): ?>
											<div class="checkbox checkbox-success">
												<input id="checkbox3" name="IsValidTglResep" class="styled" type="checkbox" value="y" checked="checked">
												<label for="checkbox3"></label>
											</div>
										<?php else: ?>											
											<div class="checkbox checkbox-success">
												<input id="checkbox3" name="IsValidTglResep" class="styled" type="checkbox" value="y">
												<label for="checkbox3"></label>
											</div>
										<?php endif; ?>
									</td>
									<td>
										<input type="text" name="KetTglResep" class="form-control input-sm" placeholder="Keterangan" value="<?php echo $resep[0]['KetTglResep'] ?>">
									</td>
								</tr>
								
								<tr>
									<td>
										Standar
									</td>
									<td align="center">
										<?php if($resep[0]['IsValidStandar'] == 'y'): ?>
											<div class="checkbox checkbox-success">
												<input id="checkbox3" name="IsValidStandar" class="styled" type="checkbox" value="y" checked="checked">
												<label for="checkbox3"></label>
											</div>
										<?php else: ?>
											<div class="checkbox checkbox-success">
												<input id="checkbox3" name="IsValidStandar" class="styled" type="checkbox" value="y">
												<label for="checkbox3"></label>
											</div>
										<?php endif; ?>
									</td>
									<td>
										<input name="KetStandar" type="text" class="form-control input-sm" placeholder="Keterangan" value="<?php echo $resep[0]['KetStandar'] ?>">
									</td>
								</tr>

								<tr>
									<td>
										Tanda Tangan
									</td>
									<td align="center">
										<?php if($resep[0]['IsValidTandaTangan'] == 'y'): ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidTandaTangan" id="checkbox3" class="styled" type="checkbox" value="y" checked="checked">
												<label for="checkbox3"></label>
											</div>
										<?php else: ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidTandaTangan" id="checkbox3" class="styled" type="checkbox" value="y">
												<label for="checkbox3"></label>
											</div>
										<?php endif; ?>
									</td>
									<td>
										<input name="KetTandaTangan" type="text" class="form-control input-sm" placeholder="Keterangan" value="<?php echo $resep[0]['KetTandaTangan'] ?>">
									</td>
								</tr>

								<tr>
									<td>
										Nama Obat
									</td>
									<td align="center">
										<?php if($resep[0]['IsValidNmObat'] == 'y'): ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidNmObat" id="checkbox3" class="styled" type="checkbox" value="y" checked="checked">
												<label for="checkbox3"></label>
											</div>
										<?php else: ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidNmObat" id="checkbox3" class="styled" type="checkbox" value="y">
												<label for="checkbox3"></label>
											</div>
										<?php endif; ?>
									</td>
									<td>
										<input name="KetNmObat" type="text" class="form-control input-sm" placeholder="Keterangan" value="<?php echo $resep[0]['KetNmObat'] ?>">
									</td>
								</tr>

								<tr>
									<td>
										Potensi Obat
									</td>
									<td align="center">
										<?php if($resep[0]['IsValidPotensiObat'] == 'y'): ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidPotensiObat" id="checkbox3" class="styled" type="checkbox" value="y" checked="checked">
												<label for="checkbox3"></label>
											</div>
										<?php else: ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidPotensiObat" id="checkbox3" class="styled" type="checkbox" value="y">
												<label for="checkbox3"></label>
											</div>
										<?php endif; ?>
									</td>
									<td>
										<input name="KetPotensiObat" type="text" class="form-control input-sm" placeholder="Keterangan" value="<?php echo $resep[0]['KetPotensiObat'] ?>">
									</td>
								</tr>

								<tr>
									<td>
										Dosis Obat
									</td>
									<td align="center">
										<?php if($resep[0]['IsValidDosisObat'] == 'y'): ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidDosisObat" id="checkbox3" class="styled" type="checkbox" value="y" checked="checked">
												<label for="checkbox3"></label>
											</div>
										<?php else: ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidDosisObat" id="checkbox3" class="styled" type="checkbox" value="y">
												<label for="checkbox3"></label>
											</div>
										<?php endif; ?>
									</td>
									<td>
										<input name="KetDosisObat" type="text" class="form-control input-sm" placeholder="Keterangan" value="<?php echo $resep[0]['KetDosisObat'] ?>">
									</td>
								</tr>

								<tr>
									<td>
										Jumlah Obat
									</td>
									<td align="center">
										<?php if($resep[0]['IsValidJumlahObat'] == 'y'): ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidJumlahObat" id="checkbox3" class="styled" type="checkbox" value="y" checked="checked">
												<label for="checkbox3"></label>
											</div>
										<?php else: ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidJumlahObat" id="checkbox3" class="styled" type="checkbox" value="y">
												<label for="checkbox3"></label>
											</div>
										<?php endif; ?>
									</td>
									<td>
										<input name="KetJumlahObat" type="text" class="form-control input-sm" placeholder="Keterangan" value="<?php echo $resep[0]['KetJumlahObat'] ?>">
									</td>
								</tr>

								<tr>
									<td>
										Cara Pakai Obat
									</td>
									<td align="center">
										<?php if($resep[0]['IsValidCaraPakaiObat'] == 'y'): ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidCaraPakaiObat" id="checkbox3" class="styled" type="checkbox" value="y" checked="checked">
												<label for="checkbox3"></label>
											</div>
										<?php else: ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidCaraPakaiObat" id="checkbox3" class="styled" type="checkbox" value="y">
												<label for="checkbox3"></label>
											</div>
										<?php endif; ?>
									</td>
									<td>
										<input name="KetCaraPakaiObat" type="text" class="form-control input-sm" placeholder="Keterangan" value="<?php echo $resep[0]['KetCaraPakaiObat'] ?>">
									</td>
								</tr>

								<tr>
									<td>
										Nama Pasien
									</td>
									<td align="center">
										<?php if($resep[0]['IsValidNmPasien']): ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidNmPasien" id="checkbox3" class="styled" type="checkbox" value="y" checked="checked">
												<label for="checkbox3"></label>
											</div>
										<?php else: ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidNmPasien" id="checkbox3" class="styled" type="checkbox" value="y">
												<label for="checkbox3"></label>
											</div>
										<?php endif; ?>
									</td>
									<td>
										<input name="KetNmPasien" type="text" class="form-control input-sm" placeholder="Keterangan" value="<?php echo $resep[0]['KetNmPasien'] ?>">
									</td>
								</tr>

							</tbody>
						</table>	          
					</div>
				
					<div class="col-xs-6">
						<table class="table table-form table-hover">
							<thead>
								<tr>
									<th></th>
									<th>Valid</th>
									<th>Keterangan</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td>
										Alamat Pasien
									</td>
									<td align="center">
										<?php if($resep[0]['IsValidAlamatPasien'] == 'y'): ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidAlamatPasien" id="checkbox3" class="styled" type="checkbox" value="y" checked="checked">
												<label for="checkbox3"></label>
											</div>
										<?php else: ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidAlamatPasien" id="checkbox3" class="styled" type="checkbox" value="y">
												<label for="checkbox3"></label>
											</div>
										<?php endif; ?>
									</td>
									<td>
										<input name="KetAlamatPasien" type="text" class="form-control input-sm" placeholder="Keterangan" value="<?php echo $resep[0]['KetAlamatPasien'] ?>">
									</td>
								</tr>

								<tr>
									<td>
										Umur Pasien
									</td>
									<td align="center">
										<?php if($resep[0]['IsValidUmurPasien'] == 'y'): ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidUmurPasien" id="checkbox3" class="styled" type="checkbox" value="y" checked="checked">
												<label for="checkbox3"></label>
											</div>
										<?php else: ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidUmurPasien" id="checkbox3" class="styled" type="checkbox" value="y">
												<label for="checkbox3"></label>
											</div>
										<?php endif; ?>
									</td>
									<td>
										<input name="KetUmurPasien" type="text" class="form-control input-sm" placeholder="Keterangan" value="<?php echo $resep[0]['KetUmurPasien'] ?>">
									</td>
								</tr>

								<tr>
									<td>
										Berat Pasien
									</td>
									<td align="center">
										<?php if($resep[0]['IsValidBeratPasien'] == 'y'): ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidBeratPasien" id="checkbox3" class="styled" type="checkbox" value="y" checked="checked">
												<label for="checkbox3"></label>
											</div>
										<?php else: ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidBeratPasien" id="checkbox3" class="styled" type="checkbox" value="y">
												<label for="checkbox3"></label>
											</div>
										<?php endif; ?>
									</td>
									<td>
										<input name="KetBeratPasien" type="text" class="form-control input-sm" placeholder="Keterangan" value="<?php echo $resep[0]['KetBeratPasien'] ?>">
									</td>
								</tr>

								<tr>
									<td>
										Jenis Kelamin Pasien
									</td>
									<td align="center">
										<?php if($resep[0]['IsValidJkelPasien'] == 'y'): ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidJkelPasien" id="checkbox3" class="styled" type="checkbox" value="y" checked="checked">
												<label for="checkbox3"></label>
											</div>
										<?php else: ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidJkelPasien" id="checkbox3" class="styled" type="checkbox" value="y">
												<label for="checkbox3"></label>
											</div>
										<?php endif; ?>
									</td>
									<td>
										<input name="KetJkelPasien" type="text" class="form-control input-sm" placeholder="Keterangan" value="<?php echo $resep[0]['KetJkelPasien'] ?>">
									</td>
								</tr>

								<tr>
									<td>
										Bentuk Sediaan
									</td>
									<td align="center">
										<?php if($resep[0]['IsValidBentukSediaan'] == 'y'): ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidBentukSediaan" id="checkbox3" class="styled" type="checkbox" value="y" checked="checked">
												<label for="checkbox3"></label>
											</div>
										<?php else: ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidBentukSediaan" id="checkbox3" class="styled" type="checkbox" value="y">
												<label for="checkbox3"></label>
											</div>
										<?php endif; ?>
									</td>
									<td>
										<input name="KetBentukSediaan" type="text" class="form-control input-sm" placeholder="Keterangan" value="<?php echo $resep[0]['KetBentukSediaan'] ?>">
									</td>
								</tr>

								<tr>
									<td>
										Stabilitas
									</td>
									<td align="center">
										<?php if($resep[0]['IsValidStabilitas'] == 'y'): ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidStabilitas" id="checkbox3" class="styled" type="checkbox" value="y" checked="checked">
												<label for="checkbox3"></label>
											</div>
										<?php else: ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidStabilitas" id="checkbox3" class="styled" type="checkbox" value="y">
												<label for="checkbox3"></label>
											</div>
										<?php endif; ?>
									</td>
									<td>
										<input name="KetStabilitas" type="text" class="form-control input-sm" placeholder="Keterangan" value="<?php echo $resep[0]['KetStabilitas'] ?>">
									</td>
								</tr>

								<tr>
									<td>
										Inkompatibilitas
									</td>
									<td align="center">
										<?php if($resep[0]['IsValidInkompabilitas'] == 'y'): ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidInkompabilitas" id="checkbox3" class="styled" type="checkbox" value="y" checked="checked">
												<label for="checkbox3"></label>
											</div>
										<?php else: ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidInkompabilitas" id="checkbox3" class="styled" type="checkbox" value="y">
												<label for="checkbox3"></label>
											</div>
										<?php endif; ?>
									</td>
									<td>
										<input name="KetInkompabilitas" type="text" class="form-control input-sm" placeholder="Keterangan" value="<?php echo $resep[0]['KetInkompabilitas'] ?>">
									</td>
								</tr>

								<tr>
									<td>
										Cara Pemakaian
									</td>
									<td align="center">
										<?php if($resep[0]['IsValidCaraPemakaian'] == 'y'): ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidCaraPemakaian" id="checkbox3" class="styled" type="checkbox" value="y" checked="checked">
												<label for="checkbox3"></label>
											</div>
										<?php else: ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidCaraPemakaian" id="checkbox3" class="styled" type="checkbox" value="y">
												<label for="checkbox3"></label>
											</div>
										<?php endif; ?>
									</td>
									<td>
										<input name="KetCaraPemakaian" type="text" class="form-control input-sm" placeholder="Keterangan" value="<?php echo $resep[0]['KetCaraPemakaian'] ?>">
									</td>
								</tr>

								<tr>
									<td>
										Alergi
									</td>
									<td align="center">
										<?php if($resep[0]['IsValidAlergi'] == 'y'): ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidAlergi" id="checkbox3" class="styled" type="checkbox" value="y" checked="checked">
												<label for="checkbox3"></label>
											</div>
										<?php else: ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidAlergi" id="checkbox3" class="styled" type="checkbox" value="y">
												<label for="checkbox3"></label>
											</div>
										<?php endif; ?>
									</td>
									<td>
										<input name="KetAlergi" type="text" class="form-control input-sm" placeholder="Keterangan" value="<?php echo $resep[0]['KetAlergi'] ?>">
									</td>
								</tr>

								<tr>
									<td>
										Kesesuaian Dosis
									</td>
									<td align="center">
										<?php if($resep[0]['IsValidKesesuaianDosis'] == 'y'): ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidKesesuaianDosis" id="checkbox3" class="styled" type="checkbox" value="y" checked="checked">
												<label for="checkbox3"></label>
											</div>
										<?php else: ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidKesesuaianDosis" id="checkbox3" class="styled" type="checkbox" value="y">
												<label for="checkbox3"></label>
											</div>
										<?php endif; ?>
									</td>
									<td>
										<input name="KetKesesuaianDosis" type="text" class="form-control input-sm" placeholder="Keterangan" value="<?php echo $resep[0]['KetKesesuaianDosis'] ?>">
									</td>
								</tr>

								<tr>
									<td>
										Kesesuaian Durasi
									</td>
									<td align="center">
										<?php if($resep[0]['IsValidKesesuaianDurasi'] == 'y'): ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidKesesuaianDurasi" id="checkbox3" class="styled" type="checkbox" value="y" checked="checked">
												<label for="checkbox3"></label>
											</div>
										<?php else: ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidKesesuaianDurasi" id="checkbox3" class="styled" type="checkbox" value="y">
												<label for="checkbox3"></label>
											</div>
										<?php endif; ?>
									</td>
									<td>
										<input name="KetKesesuaianDurasi" type="text" class="form-control input-sm" placeholder="Keterangan" value="<?php echo $resep[0]['KetKesesuaianDurasi'] ?>">
									</td>
								</tr>

								<tr>
									<td>
										Efek Samping
									</td>
									<td align="center">
										<?php if($resep[0]['IsValidEfekSamping'] == 'y'): ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidEfekSamping" id="checkbox3" class="styled" type="checkbox" value="y" checked="checked">
												<label for="checkbox3"></label>
											</div>
										<?php else: ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidEfekSamping" id="checkbox3" class="styled" type="checkbox" value="y">
												<label for="checkbox3"></label>
											</div>
										<?php endif; ?>
									</td>
									<td>
										<input name="KetEfekSamping" type="text" class="form-control input-sm" placeholder="Keterangan" value="<?php echo $resep[0]['KetEfekSamping'] ?>">
									</td>
								</tr>

								<tr>
									<td>
										Interaksi Obat
									</td>
									<td align="center">
										<?php if($resep[0]['IsValidInteraksiObat'] == 'y'): ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidInteraksiObat" id="checkbox3" class="styled" type="checkbox" value="y" checked="checked">
												<label for="checkbox3"></label>
											</div>
										<?php else: ?>
											<div class="checkbox checkbox-success">
												<input name="IsValidInteraksiObat" id="checkbox3" class="styled" type="checkbox" value="y">
												<label for="checkbox3"></label>
											</div>
										<?php endif; ?>
									</td>
									<td>
										<input name="KetInteraksiObat" type="text" class="form-control input-sm" placeholder="Keterangan" value="<?php echo $resep[0]['KetInteraksiObat'] ?>">
									</td>
								</tr>

							</tbody>
						</table>
					</div>				
					<center>
						<button type="submit" class="btn btn-primary" name="btn_simpan"><i class="fa fa-upload"></i> Update</a></button>
						<a href="<?php echo site_url('pasien_data') ?>" class="btn btn-danger">Batal</a>
					</center>
					<?php echo form_close() ?>				
				</div>


				<div class="clearfix"></div>
			</div>
    </div> <!-- /container -->